home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / ntreskit.exe / FTPINST.BAT < prev    next >
DOS Batch File  |  1993-09-09  |  2KB  |  74 lines

  1. @echo off
  2.  
  3. if (%PROCESSOR_ARCHITECTURE%)==() goto BadProcessor
  4. if (%WINDIR%)==() goto BadWinDir
  5. if not exist %WINDIR%\system32\ntoskrnl.exe goto BadWinDir
  6.  
  7. if not exist %WINDIR%\system32\ftpsvc.exe goto FtpsvcNotInstalled
  8. if not exist %WINDIR%\system32\ftpsvc.dll goto FtpsvcNotInstalled
  9.  
  10. if not exist ftpinst.bat goto CannotInstall
  11. if not exist ftpctrs.h   goto CannotInstall
  12. if not exist ftpctrs.ini goto CannotInstall
  13. if not exist ftpctrs.reg goto CannotInstall
  14. if not exist ftpctrs.dll goto CannotInstall
  15.  
  16. echo Windows NT FTP Server Performance Counters Installation
  17. echo.
  18. echo This installation script makes the following assumptions:
  19. echo.
  20. echo         o The Windows NT FTP Server has been properly installed.
  21. echo.
  22. echo         o The LODCTR and REGINI utilities are on the path.
  23. echo.
  24. echo         o This script is run from the RESKIT directory.
  25. echo.
  26. echo If these assumptions are not valid, please correct and try again.
  27. echo Press CTRL-C to exist now, otherwise
  28. pause
  29.  
  30. copy ftpctrs.dll %WINDIR%\system32 >nul 2>&1
  31. if errorlevel 1 goto InstallError
  32. if not exist %WINDIR%\system32\ftpctrs.dll goto InstallError
  33. regini ftpctrs.reg >nul 2>&1
  34. if errorlevel 1 goto InstallError
  35. lodctr ftpctrs.ini
  36. if errorlevel 1 goto InstallError
  37.  
  38. echo.
  39. echo Windows NT FTP Server Performance Counters Installation successful.
  40. goto Done
  41.  
  42. :InstallError
  43.  
  44. echo.
  45. echo Cannot install the Windows NT FTP Server Performance Counters.
  46. goto Done
  47.  
  48. :CannotInstall
  49.  
  50. echo This installation script MUST be run from the RESKIT
  51. echo directory.
  52. goto Done
  53.  
  54. :BadProcessor
  55.  
  56. echo The PROCESSOR_ARCHITECTURE environment variable must be set to the
  57. echo proper processor type (X86, MIPS, etc) before running this script.
  58. goto Done
  59.  
  60. :BadWinDir
  61.  
  62. echo The WINDIR environment variable must point to the Windows NT
  63. echo installation directory (i.e. C:\NT).
  64. goto Done
  65.  
  66. :FtpsvcNotInstalled
  67.  
  68. echo The Windows NT FTP Server has not been properly installed
  69. echo on this system.  Please install the Windows NT FTP Server
  70. echo before installing these performance counters.
  71. goto Done
  72.  
  73. :Done
  74.